package com.langsin;

public class MethodDemo {
    public static void main(String[] args) {
        getSum();
        getSum(1);
        getSum(1,2);
    }



    public static void getSum(){
        System.out.println("无参无返");
    }

    public static void getSum(int a){
        System.out.println("有参无返");
    }

    public static int getSum(int a ,int b){
        System.out.println("有参有返"+(a+b));
        return a+b;
    }
}
